package phone.example.com.a36kr.tools;

import android.app.FragmentBreadCrumbs;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;

import cn.bmob.v3.Bmob;
import phone.example.com.a36kr.R;

/**
 * Created by dllo on 16/8/15.
 */
public abstract class BaseActivity extends AppCompatActivity{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(setLayout());

        initView();
        initData();
    }

    protected abstract int setLayout();
    protected abstract void initView();
    protected abstract void initData();

    protected <T extends View> T bindView(int id){
        return (T)findViewById(id);
    }




}
